﻿@{
    Layout = "~/Views/Shared/_LayuiLayout.cshtml";
}

@model AddressOutput

<form class="layui-form layui-form-pane">
    @Html.AntiForgeryToken()
    <input type="hidden" value="@Model.Id" name="Id" />
    <input type="hidden" value="@Model.MemberId" name="MemberId" />
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="UserName" value="@ViewBag.UserName">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="RealName" value="@Model.RealName">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="Mobile" value="@Model.Mobile">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">省份名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ProvinceName" value="@Model.ProvinceName">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">省份编号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ProvinceCode" value="@Model.ProvinceCode">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">城市名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="CityName" value="@Model.CityName">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">城市编号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="CityCode" value="@Model.CityCode">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="SendAddress" value="@Model.SendAddress">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮编</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="PostCode" value="@Model.PostCode">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否默认</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="IsDefault" value="@(Model.IsDefault?"是":"否")">
        </div>
    </div>
    <div class="layui-form-item" align="center">
        <button type="button" class="layui-btn layui-btn-primary" id="btnCancel">取消</button>
    </div>
</form>

@section scripts{
    <script type="text/javascript">
        var $, layer;
        layui.use(['form'], function () {
            var form = layui.form;
            $ = layui.jquery;
            layer = parent.layer === undefined ? layui.layer : parent.layer;

            // 监听关闭
            $('#btnCancel').on('click', function () {
                layer_close();
            });
        });
    </script>
}

